<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="http://bj.911860.com/www/resources/js/jquery-1.7.2.min.js"></script>
<script>
function getQueryParameter(qs)  
{  
	var s = location.href;  
	s = s.replace("?","?&").split("&");//这样可以保证第一个参数也能分出来 
	var re = "";  
	for(i=1;i<s.length;i++)  
		if(s[i].indexOf(qs+"=")==0)  
			re = s[i].replace(qs+"=","");//取代前面的参数名，只剩下参数值  
			  
	return re;  
}
var luckUser=getQueryParameter("luckuser");
$(document).ready(function(e) {
    var u="http://bj.911860.com/mobile-html5-rest/bl/prodataLogin/"+luckUser;
	$.getJSON(u+".jsonp?callback=?",{},function(data){
		if(data.sb.status=='00000'){
			window.localStorage.setItem("userkey",data.userkey);
			window.localStorage.setItem("curphone",luckUser);
			window.localStorage.setItem("username",data.userName);
			window.localStorage.setItem("innetTime",data.inNetTime);
			window.localStorage.setItem("payType",data.payType);//0后付费
			window.localStorage.setItem("credit",data.credit);
			window.localStorage.setItem("packname",data.packageName);
			window.localStorage.setItem("datasDate",data.acctDay);
			window.location.href="http://bj.911860.com/www/bi/index.html";
		}else if(data.sb.status=='00002'){
			localStorage.setItem("curphone",luckUser);
			localStorage.setItem("userkey",data.userkey);
			window.location.href="http://bj.911860.com/www/bi/prodata.html";
		}
	});
							
});
</script>
</head>

<body>
<span style="font-size:22px;">正在跳转......</span>
</body>
</html>
